package com.kele.client;

import com.kele.model.goods.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "kele-goods",contextId="category")
public interface CategoryFeignClient {

    @GetMapping("category/findAll")
    public List<Category> findAll();

    @GetMapping("category/findById/{id}")
    public Category findById(@PathVariable Long id);
}
